package com.vegetable.modules.entity.stock.po;

import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="库存流水", description="库存流水")
public class StockFlowAddPO extends BaseEntity {

    @ApiModelProperty(value = "商品ID")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commonCode;

    @ApiModelProperty(value = "单据编号")
    private String orderNo;

    @ApiModelProperty(value = "单据类型：0 代办交货入库 1 物流园采购入库 2 散货采购入库 4 销售退货入库 5 盘盈入库 6 其他入库 7 销售出库 8 盘损出库 9 采购退货出库 10 调拨出库 11 调拨入库 12 代销出库 13 其他出库")
    private Integer orderType;

    @ApiModelProperty(value = "调整数量")
    private Integer num;

    @ApiModelProperty(value = "剩余库存")
    private Integer surplusStock;

    @ApiModelProperty(value = "仓库ID")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "库存批次编码")
    private String stockBatchNo;
}
